package com.hyperchain.entity.dto;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

@Data
public class MailDto {
    private String userName;

    private String phone;

    private String proofMsg;

    private String email;

    private String remark;

    public String getRemark() {
        if(StrUtil.isEmpty(this.remark)){
            return "";
        }
        return this.remark;
    }

    @Override
    public String toString() {
        return
                "用户名称:" + userName +
                "<br/>用户手机号:" + phone  +
                "<br/>开票信息：" + proofMsg +
                "<br/>联系邮箱:" + email +
                "<br/>备注:" + getRemark() +
                        "<br/>转账凭证见邮件附件。";
    }

}
